<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Usuario extends CI_Controller {
     function __construct(){
        parent::__construct();
        $this->load->model('usuarios_m');
      }
      
      public function index(){
          $data['js']= array('vendor/jquery.dataTables1.9.4.min','main_datatable');
          $data['css']= array('style/datatable_bootstrap');
          
          $data['title'] = 'Administracion del Sitio.';
          $data['menubar'] = $this->load->view('template/menubar_usr','',TRUE);
          
          $id_user = $this->session->userdata('id_user');
          $data_usr['data_usr'] = $this->usuarios_m->get_datauser($id_user);
          $data_usr['sucursal_usr'] = $this->usuarios_m->get_sucursalesusr($id_user);
          
          $data['content'] = $this->load->view('usuario/v_index',$data_usr,TRUE);
          $this->load->view('template/template',$data);
          }
        
}//Fin de clase.